#include <stdio.h>
#include<string.h>

union unode {
    int n;
    double a;
    char c1;
} u;

int main() {

    u.n = 97;
    printf("%d\n", u.n);
    printf("%f\n", u.a);
    printf("%c\n", u.c1);
    printf("%s\n\n", "======================");

    u.c1 = 'b';
    printf("%d\n", u.n);
    printf("%f\n", u.a);
    printf("%c\n", u.c1);
    printf("%p\n", &u.c1);
    printf("%p\n", &u.n);
    printf("%p\n", &u.a);
    printf("%lu\n", sizeof (u));
    printf("%s\n\n", "======================");

    strcpy(&u.c1, "abcdefg");
    printf("%d\n", u.n);
    printf("%f\n", u.a);
    printf("%c\n", u.c1);
    printf("%p\n\n", &u.c1);

}